libxl_wait_for_memory_target: wait for 2 sec at a time
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 6 Mar 2015 17:19:17 +0000 (17:19 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 11 Mar 2015 11:36:38 +0000 (11:36 +0000)
commit0c8d70336bbf3d83d6d927fecdd716010c4907dc
treeac3ba689dba070e7b9b80f08926ba0d4de00db29
parent883b30a09610d08164ddf21b9346f0033a8dc16c
libxl_wait_for_memory_target: wait for 2 sec at a time

Use a 2 sec sleep time in the loop to allow the guest to release a
decent amount of memory in an iteration (empirical tests show ballooning
speed to be 512MB/sec or recent boxes).

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Mike Latimer <mlatimer@suse.com>
Tested-by: Mike Latimer <mlatimer@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c